package com.javatip.project.deep_learning.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.javatip.framework.web.domain.BaseEntity;
import java.util.Date;
    
/**
 * 模型表 model
 * 
 * @author 袁伟
 * @date 2024-07-12
 */
public class Model extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Integer id;
	/** 模型名称 */
	private String modelName;
	/** 适用图像高 */
	private Integer fitHeight;
	/** 适用图像宽 */
	private Integer fitWidth;
	/** 输入通道数 */
	private Integer inputChannel;
	/** 输出通道数 */
	private Integer outputChannel;
	/** 上传时间 */
	private Date uploadTime;
	/** 归属用户 */
	private Integer userId;
	/** 模型位置 */
	private String location;

	public boolean getIsWeight() {
		return this.isWeight;
	}

	public void setIsWeight(boolean weight) {
		this.isWeight = weight;
	}

	/**  */
	private Integer isPublic;

	//记录是否有权重文件
	private boolean isWeight;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	private String userName;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setModelName(String modelName) 
	{
		this.modelName = modelName;
	}

	public String getModelName() 
	{
		return modelName;
	}
	public void setFitHeight(Integer fitHeight) 
	{
		this.fitHeight = fitHeight;
	}

	public Integer getFitHeight() 
	{
		return fitHeight;
	}
	public void setFitWidth(Integer fitWidth) 
	{
		this.fitWidth = fitWidth;
	}

	public Integer getFitWidth() 
	{
		return fitWidth;
	}
	public void setInputChannel(Integer inputChannel) 
	{
		this.inputChannel = inputChannel;
	}

	public Integer getInputChannel() 
	{
		return inputChannel;
	}
	public void setOutputChannel(Integer outputChannel) 
	{
		this.outputChannel = outputChannel;
	}

	public Integer getOutputChannel() 
	{
		return outputChannel;
	}
	public void setUploadTime(Date uploadTime) 
	{
		this.uploadTime = uploadTime;
	}

	public Date getUploadTime() 
	{
		return uploadTime;
	}
	public void setUserId(Integer userId) 
	{
		this.userId = userId;
	}

	public Integer getUserId() 
	{
		return userId;
	}
	public void setLocation(String location) 
	{
		this.location = location;
	}

	public String getLocation() 
	{
		return location;
	}
	public void setIsPublic(Integer isPublic) 
	{
		this.isPublic = isPublic;
	}

	public Integer getIsPublic() 
	{
		return isPublic;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelName", getModelName())
            .append("fitHeight", getFitHeight())
            .append("fitWidth", getFitWidth())
            .append("inputChannel", getInputChannel())
            .append("outputChannel", getOutputChannel())
            .append("uploadTime", getUploadTime())
            .append("userId", getUserId())
            .append("location", getLocation())
            .append("isPublic", getIsPublic())
				.append("userName", getUserName())
				.append("isWeight", getIsWeight())
            .toString();
    }
}
